<template>
  <view>
    <view v-for="(item,index) in datalist" style="margin: 10rpx;">
      <CustomTextView :nid="item.nID" :title="item.title" :isTop="item.isTop"
        :author="item.author" :comments="item.comments" :time="item.time"
        @click="onCustomViewClick(index)">
      </CustomTextView>
    </view>
  </view>
</template>

<script>
	import CustomTextView from "../../components/cardViewText.vue"
	export default {
		components:{
			CustomTextView
		},
		data() {
			return{
				// dataObj:{
				// 	title:"时隔十年！沪指再度站上4000点",
				// 	isTop:true,
				// 	author:"财联社",
				// 	comments:125,
				// 	time:"2025.10.28"
				// }
				datalist: [{nID: "T15627",
				title: "金价波动,有金店“玩不起”?订单拦截、拒发货,还疯狂打电话让退款",
				isTop: true,
				author: "环球网",
				comments: 554,time: "2025.10.27",
				}, {
					nID: "B4485",
					title: "“00后”用打印机造250多万元假币 警方:15人被抓",
					isTop: false,
					author: "海报新闻",
					comments: 1025,
					time: "2025.10.28"},{
						nID: "A5454",
						title: "第八届进博会筹备就绪,规模再创新高",
						isTop: true,
						author: "上官新闻",
						comments: 515,
						time: "2025.10.28"
					},{
					nID: "C5665",
					title: "大量用户举报投诉,微信:严厉打击!",
					isTop: false,
					author: "新华网",
					comments: 551,
					time: "2025.10.28"	
					},{
					nID: "D5458",
					title: "点赞转发!两岸统一后有哪些利好",
					isTop: false,
					author: "新浪财经",
					comments: 5651,
					time: "2025.10.27"	
					}]
			}
			},
			
		methods: {
			
		}
		
	}
</script>

<style>

</style>